home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3nurbs2.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.8 KB  |  109 lines

  1.  
  2. // JavaScript wrapper for r3nurbs2.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_NURBS2_H = 1;
  7. include("real/objects/r3prim.js")
  8. include("real/objects/r3nurbs.js")
  9.  
  10.  
  11. var R3CLID_NURBS2 = 694;
  12.  
  13.  
  14.  
  15.  
  16. // Description: Set radius for the selected points
  17. // p3: Number, new radius    
  18.  
  19. R3NURBS2M_SETSELECTEDRADIUS = 694000;
  20.  
  21. function mR3NURBS2M_SETSELECTEDRADIUS(p3) {
  22.   DoA(this.r3obj, 694000, p3, R3TID_FLOAT, 0);
  23. }
  24.  
  25. // Description: Get radius of the given point
  26. // Returns: Boolean, true if succeeded.
  27. // p1: Number, buffer for the radius.
  28. // p3: Integer, index of the point
  29.  
  30. R3NURBS2M_GETRADIUS = 694001;
  31.  
  32. function mR3NURBS2M_GETRADIUS(p1, p3) {
  33.   return   DoA2(this.r3obj, 694001, p1, R3TID_FLOAT, 0, p3, R3TID_INTEGER, 0);
  34. }
  35.  
  36.  
  37.  
  38.  
  39. R3NURBS2A_Radius = 694500;
  40. function SetR3NURBS2A_Radius(value) {
  41.   R3Set(this.r3obj, R3NURBS2A_Radius, value, R3TID_FLOAT, R3TNF_ARRAY); 
  42. }
  43.  
  44. function GetR3NURBS2A_Radius() {
  45.   return R3Get(this.r3obj, R3NURBS2A_Radius, R3TID_FLOAT, R3TNF_ARRAY); 
  46. }
  47.  
  48. R3NURBS2A_Points = 694501;
  49. function SetR3NURBS2A_Points(value) {
  50.   R3Set(this.r3obj, R3NURBS2A_Points, value, R3TID_VECTOR, R3TNF_ARRAY); 
  51. }
  52.  
  53. function GetR3NURBS2A_Points() {
  54.   return R3Get(this.r3obj, R3NURBS2A_Points, R3TID_VECTOR, R3TNF_ARRAY); 
  55. }
  56.  
  57. R3NURBS2A_Count = 694502;
  58. function SetR3NURBS2A_Count(value) {
  59.   R3Set(this.r3obj, R3NURBS2A_Count, value, R3TID_INTEGER, 0); 
  60. }
  61.  
  62. function GetR3NURBS2A_Count() {
  63.   return R3Get(this.r3obj, R3NURBS2A_Count, R3TID_INTEGER, 0); 
  64. }
  65.  
  66. R3NURBS2A_ScanLineQuality = 694503;
  67. function SetR3NURBS2A_ScanLineQuality(value) {
  68.   R3Set(this.r3obj, R3NURBS2A_ScanLineQuality, value, R3TID_INTEGER, 0); 
  69. }
  70.  
  71. function GetR3NURBS2A_ScanLineQuality() {
  72.   return R3Get(this.r3obj, R3NURBS2A_ScanLineQuality, R3TID_INTEGER, 0); 
  73. }
  74.  
  75. R3NURBS2A_Diameter = 694504;
  76. function SetR3NURBS2A_Diameter(value) {
  77.   R3Set(this.r3obj, R3NURBS2A_Diameter, value, R3TID_FLOAT, 0); 
  78. }
  79.  
  80. function GetR3NURBS2A_Diameter() {
  81.   return R3Get(this.r3obj, R3NURBS2A_Diameter, R3TID_FLOAT, 0); 
  82. }
  83.  
  84.  
  85.  
  86. function r3Nurbs2 () { 
  87.    this.base = r3God;
  88.    if(arguments.length) {
  89.       this.base(R3CLID_NURBS2, arguments);
  90.    }
  91.    // Methods
  92.    this.SETSELECTEDRADIUS=mR3NURBS2M_SETSELECTEDRADIUS;
  93.    this.GETRADIUS=mR3NURBS2M_GETRADIUS;
  94.  
  95.    // Attributes
  96.    this.GetRadius=GetR3NURBS2A_Radius;
  97.    this.SetRadius=SetR3NURBS2A_Radius;
  98.    this.GetPoints=GetR3NURBS2A_Points;
  99.    this.SetPoints=SetR3NURBS2A_Points;
  100.    this.GetCount=GetR3NURBS2A_Count;
  101.    this.SetCount=SetR3NURBS2A_Count;
  102.    this.GetScanLineQuality=GetR3NURBS2A_ScanLineQuality;
  103.    this.SetScanLineQuality=SetR3NURBS2A_ScanLineQuality;
  104.    this.GetDiameter=GetR3NURBS2A_Diameter;
  105.    this.SetDiameter=SetR3NURBS2A_Diameter;
  106. }
  107.  
  108. r3Nurbs2.prototype=new r3Primitive;
  109. // r3nurbs2.h_H